/*
 * @Author: zhangfeng
 * @Date: 2023-12-28 17:18:29
 * @LastEditTime: 2023-12-29 14:45:16
 * @LastEditors: zhangfeng
 * @Description:
 * @FilePath: \nodeapi\src\router\role.premission.router.js
 * © 2023 张峰，All rights reserved.
 */
const KoaRouter = require("koa-router");

const {
  create,
  getPremission,
} = require("../controller/role-premisssion.controller");

const router = new KoaRouter({
  prefix: "/premission",
});

// 绑定权限
router.post("/", create);

// 获取权限
router.get("/", getPremission);

module.exports = router;
